#!/usr/bin/env python

import sys
from PyQt4 import QtCore, QtGui
from form import Form
from process import *


if __name__ == "__main__":
    inputfile = sys.argv[1]

    app = QtGui.QApplication(sys.argv)
    window = Form()
    window.filename = inputfile
    window.show()
    app.exec_()
    if window.OK:
	pages = window.pages
	numbering = window.numbering

	process(inputfile, pages, numbering)

    sys.exit()

